<%@ page language="java" pageEncoding="UTF-8"%>
<%@ include file="/corp/include/taglibs.jsp"%>
<%@ taglib prefix="s" uri="/struts-tags" %>
<html>
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
	<title></title>
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="-1000">
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
	<LINK href="${ctx }/corp/css/css.css" type=text/css rel=stylesheet>
	<!-- wrongimage指错误时显示的图片 rightimage指正确时显示的图片 wordcolor指显示的字体颜色 function指生成的调用函数名  callfuntionaname指调用DWR的函数名-->
	<!-- 验证网址-->
	<mytag:validatewebsite wrongimage="${ctx }/images/note_error.gif"
		rightimage="${ctx }/images/note_ok.gif" wordcolor="red"
		rightwordcolor="green" submitvalidate="true"></mytag:validatewebsite>

	<!-- 验证数字 -->
	<mytag:validatedigital wrongimage="${ctx }/images/note_error.gif"
		rightimage="${ctx }/images/note_ok.gif" wordcolor="red"
		rightwordcolor="green" submitvalidate="true"></mytag:validatedigital>

	<!-- 提交验证 -->
	<mytag:validatesubmit wrongimage="${ctx }/images/note_error.gif"
		submitform="publicationForm" wordcolor="red" initstr="">
	</mytag:validatesubmit>

	<mytag:validateemptylendisplay
		wrongimage="${ctx }/images/note_error.gif"
		rightimage="${ctx }/images/note_ok.gif" wordcolor="red"
		rightwordcolor="green" submitvalidate="true">
	</mytag:validateemptylendisplay>
	<mytag:validateemptylendisplay
		wrongimage="${ctx }/images/note_error.gif"
		rightimage="${ctx }/images/note_ok.gif" wordcolor="red"
		rightwordcolor="green" submitvalidate="true"></mytag:validateemptylendisplay>


	<style type="text/css">
	<!--	

p{padding-bottom:1em}
div#Layer2{
	margin:10 5%;
	background-color: #CCF3FD;
	position:absolute;
	left:648px;
	top:154px;
	width:300px;
	
	
}

b.rtop, b.rbottom{display:block;background: #FFF}
b.rtop b, b.rbottom b{display:block;height: 1px;
    overflow: hidden; background: #CCF3FD}
b.r1{margin: 0 5px}
b.r2{margin: 0 3px}
b.r3{margin: 0 2px}
b.rtop b.r4, b.rbottom b.r4{margin: 0 1px;height: 2px}


#Layer1 {
	position:absolute;
	left:86px;
	top:35px;
	width:23px;
	height:23px;
	z-index:1;
	font-weight:600;
	font-size:12px;
	
}
.hightsethidden{
display:none;
}
.hightsetdisplay{ 
display:block;
}

#Layer3 {
	position:absolute;
	left:648px;
	top:457px;
	width:230px;
	height:235px;
	z-index:3;
}

#bgdhidden{
width:75px;
	height:28px;
}
.inputFocus {
	BACKGROUND: #cf9;
}
#insertimgdisplay{
display:block;
height:90;
width:80;
border:none;
}
#insertimghidden{
display:none;
}
.setposition{
position

}
.STYLE5 {color: #FF0000}

	-->
	</style>


	
</head>

<div id="Layer2" style="display:none">
	<b class="rtop"><b class="r1"></b><b class="r2"></b><b class="r3"></b><b
		class="r4"></b>
	</b>

	<p>
		<strong>注：</strong><span id="layer2message">请填写左侧相关信息,*号为必填</span>
	</p>
	<p>&nbsp;
		
	</p>
	<p>&nbsp;
		
	</p>
	<p>&nbsp;
		
	</p>

	<b class="rbottom"><b class="r4"></b><b class="r3"></b><b
		class="r2"></b><b class="r1"></b>
	</b>
</div>
<body >
	<DIV>
		<s:form action="/corp/corpPublication_edit.do" name="publicationForm" enctype="multipart/form-data">			
			<TABLE cellSpacing=6 cellPadding=1 width="99%" border=0>
				<TBODY>
					<TR>
						<TD class=pic1wblue vAlign=top align=left bgColor=#ffffff>
							<TABLE cellSpacing=0 cellPadding=0 width="100%" border=0>
								<TBODY>

									<TR>
										<TD>

											<TABLE class=tableBorder1 style="WIDTH: 100%" cellSpacing=3
												cellPadding=3>
												<TBODY>
													<TR>
														<TD align="left">
															<SPAN style="COLOR: dodgerblue">
																<TABLE style="FONT-WEIGHT: bold;" cellSpacing=0
																	cellPadding=0>
																	<TBODY>
																		<TR>

																			<td width="43%" align="right">
																				<img src="${ctx }/corp/images/pic_shutu.gif"
																					width="64" height="48" />
																			</td>
																			<td width="56%" align="left" valign="middle"
																				background="${ctx }/corp/images/pic_shutu1.gif">
																				<span class="h3">修改电子书</span>
																			</td>


																			<TD width="1%" align="left">
																			</TD>
																		</TR>
																	</TBODY>
																</TABLE> </SPAN>
														</TD>
													</TR>

													<TR>
														<TD style="WIDTH: 100%">
															<TABLE style="WIDTH: 100%" cellSpacing=3 cellPadding=3>
																<TBODY>
																	<TR>
																		<TD>

																			<STRONG>基本信息</STRONG> &nbsp;&nbsp;&nbsp;

																		</TD>
																		<td align="center">
																			<span id="submitmessage" />
																		</td>
																	</TR>
																	<tr>
																		<td colspan="2">
																			<hr />
																		</td>
																	</tr>
																	<TR>
																		<TD align=right vAlign=top style="WIDTH: 150px">
																			<span class="STYLE5">*</span>企业行业：
																		</TD>
																		<TD>
																		<select name="typeId">
																  		<option value="">==请选择==</option>
																		<c:forEach var="corpCatalog" items="${corpCatalogs}"> 
																				<mytag:option
																						beanvalue="${corpCatalog.id}"
																						value="${publication.typeId}"
																						display="${corpCatalog.catalogName}"></mytag:option>
																  		</c:forEach>
																  		</select>
																			&nbsp;&nbsp;&nbsp;
																			<span style=" position:relative; top:-5"><span
																				class="STYLE5">*</span>出版物类型：</span>
																			<select name="pubType">
																	  		<option value="">==请选择==</option>
																			<c:forEach var="typeDict" items="${typeDicts}">  		
																	  				<mytag:option
																						beanvalue="${typeDict.classCode}"
																						value="${publication.pubType }"
																						display="${typeDict.classValue}"></mytag:option>
																	  				<option value="${typeDict.classCode }">${typeDict.classValue}</option>		
																	  		</c:forEach>
																	  		</select>
																		</TD>
																	</TR>
																	<TR>
																		<TD style="WIDTH: 150px" align=right>
																			<span class="STYLE5">*</span>标题：





																		</TD>
																		<TD colspan="3">
																			<input name="title" type="text" class="username" size="50" maxlength="50" value="${requestScope.publication.title}" onblur="validateemptylendisplay(this.value,1,160,'titlemessage','标题')"/>
																																					<span id="titlemessage" />
																		</TD>
																	</TR>
																	<TR>
																		<TD style="WIDTH: 150px" align=right>
																			<span class="STYLE5">*</span>电子书类型：
																		</TD>
																		<TD colspan="3">
																			<c:choose>
																			<c:when test="${publication.pubType==1}">
																				单页
																			</c:when>	
																				<c:when test="${publication.pubType==2}">
																				双页
																			</c:when>			
																			</c:choose>				
																			
																		</TD>
																	</TR>
																	<TR>
																		<TD style="WIDTH: 150px" align=right>
																			<span class="STYLE5">*</span>封面图：
																		</TD>
																		<TD colspan="3" valign="bottom">
																			<img height="50" width="40" name="thumbimg"
																				id="insertimghidden" align="left" />
																			<input type="file" name="thumb" id="thumb" onchange="checksuffixname(this.name,'thumbmessage','thumbimg','封面图')"
																				onkeydown="return false" />
																			<span id="thumbmessage" />
																		</TD>
																	</TR>
																	<TR>
																		<TD style="WIDTH: 150px" align=right>
																			<span class="STYLE5">*</span>封底图：
																		</TD>
																		<td>
																			<img height="50" width="40" name="endpictureimg"
																				id="insertimghidden" align="left" />
																			<input type="file" name="endpicture" id="endpicture" onchange="checksuffixname(this.name,'endpictureimgmessage','endpictureimg','封底图')"
																				onkeydown="return false" />
																			<span id="endpictureimgmessage" />
																		</TD>
																	</TR>																	
																</TBODY>
															</TABLE>
														</TD>
													</TR>
													
													<TR>

														<TD colspan="2" align=center>
															<TABLE style="WIDTH: 100%" cellSpacing=3 cellPadding=3>

																<TR>
																	<TD style="WIDTH: 150px" align=right>&nbsp;
																		


																	</TD>
																	<TD align=left>
																		&nbsp; &nbsp; &nbsp;&nbsp; &nbsp; &nbsp;&nbsp; &nbsp;
																		&nbsp;
																		<input type="button" value="确认修改内容" class=""
																			name="buttonname" style="cursor:hand"
																			onclick="checksubmit('submitmessage');scroll(0,0);">

																		&nbsp;&nbsp;&nbsp;&nbsp;
																		<input type="button" value=" 返 回 " class=""
																			name="comeback"
																			onClick="javascript:parent.closelayer(false)"
																			style="cursor:hand" />
																	</TD>
																</TR>
																<TR>
																	<TD colspan="2">
																		<hr />
																	</TD>
																</TR>
															</TABLE>
														</TD>
													</TR>
													<TR>
														<TD style="WIDTH: 150px" align=right></TD>
														<TD></TD>
													</TR>
												</TBODY>
											</TABLE>
										</TD>
									</TR>

									<TR>
										<TD style="WIDTH: 660px"></TD>
									</TR>
								</TBODY>
							</TABLE>
						</TD>
					</TR>
				</TBODY>
			</TABLE>
			</TD>
			</TR>
			</TBODY>
			</TABLE>
		</s:form>
	</DIV>
	

</body> 
</html>
